import 'package:flutter/material.dart';
import 'package:order/constant/app_colors.dart';

class OrderDishItem extends StatelessWidget {
  final dynamic itemData;
  final GestureTapCallback? onTap;

  const OrderDishItem({super.key, this.itemData, this.onTap});

  @override
  Widget build(BuildContext context) {
    return Container(
      height: 25,
      decoration: const BoxDecoration(
        border:
            Border(bottom: BorderSide(color: AppColors.fontGrey3, width: 1)),
      ),
      child: Row(
        children: [
          Expanded(
            flex: 1,
            child: Container(
              decoration: const BoxDecoration(
                  border: Border(
                right: BorderSide(color: AppColors.fontGrey3, width: 1),
              )),
              child:  Center(
                child: Text(itemData["num"]),
              ),
            ),
          ),
          Expanded(
            flex: 6,
            child: Container(
              decoration: const BoxDecoration(
                  border: Border(
                right: BorderSide(color: AppColors.fontGrey3, width: 1),
              )),
              child:  Center(
                child: Text(itemData["dishName"]),
              ),
            ),
          ),
          Expanded(
            flex: 2,
            child: Container(
              decoration: const BoxDecoration(
                  border: Border(
                right: BorderSide(color: AppColors.fontGrey3, width: 1),
              )),
              child:  Center(
                child: Text(itemData["dishCount"]),
              ),
            ),
          ),
           Expanded(flex: 3, child: Center(child: Text(itemData["dishValue"]),))
        ],
      ),
    );
  }
}
